import { axios } from '~/plugins/axios';

// 获取机构
export const getInstitution = (params?: any) => axios({
  method: 'get',
  url: '/org/getById',
  params,
}) as Promise<any>;

// 新增机构 (编辑机构)
export const addInstitution = (params: any) => axios({
  method: 'post',
  url: '/org/addOrg',
  data: {
    ...params,
  },
}) as Promise<any>;
